package com.zhucan.account.infrastructure.email;

import com.zhucan.account.infrastructure.email.event.EmailNoticeEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * author: zhuCan
 * date: 2020/8/4 20:40
 * description:
 */
@Slf4j
@Component
public class EmailSender {

  public void sendEmail(Long accountId, EmailNoticeEvent event) {

    log.info("假装向 {} 发送邮件, content: {}", accountId, event);
  }

  public void sendEmail(String identityCard, EmailNoticeEvent event) {

    log.info("假装向 {} 发送邮件, content: {}", identityCard, event);
  }
}
